package com.zenithmind.exam;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 考试服务启动类
 * 
 * @author ZenithMind
 * @since 2024-07-01
 */
@SpringBootApplication
@EnableCaching
@EnableAsync
@EnableScheduling
@EnableTransactionManagement
@MapperScan("com.zenithmind.exam.mapper")
@ComponentScan(basePackages = {"com.zenithmind.exam", "com.zenithmind.common"})
public class ExamServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(ExamServiceApplication.class, args);
        System.out.println("=================================");
        System.out.println("考试服务启动成功！");
        System.out.println("API文档地址: http://localhost:8087/doc.html");
        System.out.println("=================================");
    }
}
